<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>courseSelect</title>
  <link href="../teacher/bootstrap5/bootstrap.min.css" rel="stylesheet" >
    <style>
        * {
            margin: 0;
            padding: 0;


        }

        html,
        body {
            min-width: 1000px;
            height: 100%;
            background: url('../student/image/bg1.jpg') no-repeat;



        }

        .content {
            margin: 20px 100px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 2px;
        }

        .head-list {
            list-style-type: none;
            display: flex;
            align-items: center;
            justify-content: left;
            height: 50px;

            background: rgb(52, 73, 93);
        }
        .head-list li:nth-child(4){
            flex-grow: 2;
            margin-left: 550px;
        }

        .head-list li {
            margin-left: 40px;
        }

        .head-list li a {
            text-decoration: none;
            color: #fff;
        }

        .head-list li a:hover {
            color: rgb(229, 229, 229);
        }


        /* 标题 */
        .title {
            margin-left: 20px;
            color: rgb(52, 73, 93);
            font-size: 30px;
            font-weight: 700;
        }

    </style>
</head>
<body>

<ul class="head-list">

    <li><span style="color: #fff">身份:</span><span style="color: rgb(139,218,229)">管理员</span></li>
</ul>


<div class="content">
    <div class="title">管理选项</div>
    <table class="table">
        <thead>
        <tr>
            <!--        <th scope="col">#</th>-->
            <th scope="col">学号</th>
            <th scope="col">所选科目</th>
            <th scope="col">任课教师</th>
            <th scope="col">选课时间</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        #for(course:courseList)
        <tr>

            <td>
                #(course.student_id)
            </td>
            <td>
                #(course.subject)
            </td>
            <td>
                #(course.tname)
            </td>
            <td>
                #(course.select_time)
            </td>
            <td>
                <button type="button"
                        onclick="location.href='http://localhost/teacher/deleteCourse?courseId='
                    +'#(course.id)'+'&page='+'#(page)'+'&size='+'#(size)'"
                        class="btn btn-danger">退选</button>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    <nav aria-label="Page navigation example">
        <ul class="pagination">
            #for( i=1;i<=totalPage;i++)
            <li class="page-item"><a class="page-link" href="http://localhost/teacher/selectCourse?page=#(i)&size=7&username=#(account)">#(i)</a></li>
            #end
            <li class="page-item"><a class="page-link" >总条数:#(total)</a></li>
        </ul>
    </nav>
</div>

</body>
</html>